package demo1;

public class Test {
    public static void dragTest(Shape shape){
        shape.draw();
    }
    //Shape shape = new Shape();
    public static void main(String[] args) {
        Cycle cycle = new Cycle();
        Rest rest = new Rest();
        dragTest(cycle);
        dragTest(rest);
    }
}
